/*
 * @Description:
 * @Author: zhoujj
 * @Date: 2020-05-26 09:43:38
 * @LastEditTime: 2022-05-24 14:57:49
 * @LastEditors: zhoujj
 */
const Home = resolve => require(['@/views/index'], resolve)
const Main = resolve => require(['@/views/main'], resolve) // 首页
const Test = resolve => require(['@/views/test'], resolve)
const Demo = resolve => require(['@/demo'], resolve)
const Demo2 = resolve => require(['@/demo2'], resolve)
const Login = resolve => require(['@/views/login/index'], resolve)

const routes = [{
    path: '/',
    component: Home,
    name: '首页',
    redirect: '/login',
    children: [
        { path: '/main', component: Main, name: 'home-page' },
        { path: '/test', component: Test, name: 'test' },
        { path: '/demo', component: Demo, name: 'demo' },
        { path: '/demo2', component: Demo2, name: 'demo2' }
    ]
}, {
    path: '/login',
    component: Login,
    name: '登陆'

}]

export default routes
